import java.util.Random;
import java.util.Scanner;

/**
 * @author 10277
 */
public class GuessNumber {
    public static void main(String[] args) {
        Random random = new Random();
        Scanner scanner = new Scanner(System.in);
        while (true) {
            int gue = random.nextInt(100) + 1;
            for (int i = 0; i < 7; i++) {
                System.out.println("输入猜的数字");
                int num = scanner.nextInt();
                if (num > gue) {
                    System.out.println("猜的大了");
                } else if (num < gue) {
                    System.out.println("猜的小了");
                } else {
                    System.out.println("猜的对了");
                }
            }
            System.out.println("继续游戏请输入1");
            int in = scanner.nextInt();
            if (in!=1){
                break;
            }
        }
    }
}